package stuff;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;

import stuff.User;


public class Drifter {
	static final int TYPE=0;
	protected String ownerid;
	protected int driftID;
	protected Location sourceLocation;
	protected Date createDate;
	protected int type;
	protected String toUser;
	protected ArrayList<Message> messageList = new  ArrayList<Message>();
	
	
    public String getToUser() {
		return toUser;
	}
	public void setToUser(String toUser) {
		this.toUser = toUser;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public static final int DIRECTIONAL=1;
	public static final int SPREAD=2;
	public static final int EMOTION=3;
	public static final int TIE=4;
	
	
	public Drifter(String userid,Location sourceLocation,String message){
		this.ownerid=userid;
		this.sourceLocation=sourceLocation;
		createDate=new Date();	
	}
    public int getDriftID() {
		return driftID;
	}
	public void setDriftID(int driftID) {
		this.driftID = driftID;
	}
	public String getOwnerid() {
  		return ownerid;
  	}
  	public void setOwnerid(String ownerid) {
  		this.ownerid = ownerid;
  	}
  	public Location getSourceLocation() {
  		return sourceLocation;
  	}
  	public void setSourceLocation(Location sourceLocation) {
  		this.sourceLocation = sourceLocation;
  	}
  	public Date getCreateDate() {
  		return createDate;
  	}
  	public void setCreateDate(Date createDate) {
  		this.createDate = createDate;
  	}
  	public ArrayList<Message> getMessageList() {
		return messageList;
	}
	public void setMessageList(ArrayList<Message> messageList) {
		this.messageList = messageList;
	}
}